﻿using System.Windows;
using System.Windows.Controls;

namespace PairingMatrix.View
{
    public partial class CardWallControl : UserControl
    {
        public CardWallControl()
        {
            InitializeComponent();
            ControlRegistry.CardWallControl = this;
            MouseWheel += CardWallControl_MouseWheel;
        }

        void CardWallControl_MouseWheel(object sender, System.Windows.Input.MouseWheelEventArgs e)
        {
           this.Margin = new Thickness(Margin.Left, Margin.Top + e.Delta, Margin.Right, Margin.Bottom);
        }
    }
}
